﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manager/Manager.master" AutoEventWireup="true"
    CodeFile="AddCandidate.aspx.cs" Inherits="Manager_AddCandidate" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageTitle" runat="Server">
    Add new candidate | Aptitude Online Test
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageHeader" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="BodyContent" runat="Server">
    <div class="header">
        <span><span class="ico  gray spreadsheet"></span>Add new Candidate </span>
    </div>
    <!-- End header -->
    <div class=" clear">
    </div>
    <div class="content">
        <p>
            <asp:Label ID="lblUsername" runat="server" Text="Username" Width="150px"></asp:Label>
            <asp:TextBox ID="txtUsername" runat="server" Width="250px" 
                CausesValidation="True"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtUsername" Display="Dynamic" 
                ErrorMessage="Username is not empty"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ControlToValidate="txtUsername" Display="Dynamic" 
                ErrorMessage="Username at least 6 character" 
                ValidationExpression="^[a-zA-Z0-9]{6,}$"></asp:RegularExpressionValidator>
        </p>
        <p>
            <asp:Label ID="lblPassword" runat="server" Text="Password" Width="150px"></asp:Label>
            <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Width="250px" 
                CausesValidation="True"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtPassword" Display="Dynamic" 
                ErrorMessage="Password is not empty"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                ControlToValidate="txtPassword" Display="Dynamic" 
                ErrorMessage="Password at least 6 character" 
                ValidationExpression="^[a-zA-Z0-9]{6,}$"></asp:RegularExpressionValidator>
        </p>
        <p>
            <asp:Label ID="lblConfirmPassword" runat="server" Text="Confirm password" 
                Width="150px"></asp:Label>
            <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password" 
                Width="250px" CausesValidation="True"></asp:TextBox>
            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                ControlToCompare="txtConfirmPassword" ControlToValidate="txtPassword" 
                Display="Dynamic" ErrorMessage="Password and Confirm password not match"></asp:CompareValidator>
        </p>
        <p>
            <asp:Label ID="lblEmail" runat="server" Text="Email" Width="150px"></asp:Label>
            <asp:TextBox ID="txtEmail" runat="server" Width="250px" CausesValidation="True"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                ControlToValidate="txtEmail" Display="Dynamic" ErrorMessage="Email is invalid" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="txtEmail" Display="Dynamic" 
                ErrorMessage="Email is not empty"></asp:RequiredFieldValidator>
        </p>
        <p>
            <asp:Label ID="lblFullname" runat="server" Text="Fullname" Width="150px"></asp:Label>
            <asp:TextBox ID="txtFullname" runat="server" Width="250px" 
                CausesValidation="True"></asp:TextBox>
            <asp:CustomValidator ID="CustomValidator1" runat="server" 
                ControlToValidate="txtFullname" Display="Dynamic" 
                ErrorMessage="Fullname is not empty"></asp:CustomValidator>
        </p>
        <p>
            <asp:Label ID="lblMobile" runat="server" Text="Mobile" Width="150px"></asp:Label>
            <asp:TextBox ID="txtMobile" runat="server" Width="250px"></asp:TextBox>
        </p>
        <p>
            <asp:Label ID="lblCertificate" runat="server" Text="Certificate" Width="150px"></asp:Label>
            <asp:TextBox ID="txtCertificate" runat="server" Width="600px" Rows="1" 
                TextMode="MultiLine"></asp:TextBox>
        </p>
        <p>
            <asp:Label ID="lblExperience" runat="server" Text="Experience" Width="150px"></asp:Label>
            <asp:TextBox ID="txtExperience" runat="server" MaxLength="500" Rows="1" 
                TextMode="MultiLine" Width="600px" ></asp:TextBox>
        </p>
        
        <p>
            <asp:Label ID="lblAddress" runat="server" Text="Address" Width="150px"></asp:Label>
            <asp:TextBox ID="txtAddress" runat="server" Width="600px"></asp:TextBox>
        </p>
        <div style="padding: 2px 0px;">
            <asp:Button ID="btnAdd" class="uibutton normal but_login"  runat="server" 
                Text="Add new" onclick="btnAdd_Click" />

                        <asp:Button ID="btnReset" class="uibutton normal but_login"  runat="server" 
                onclientclick="this.form.reset();return false;" Text="Reset" />
                    </div>
        <div class=" clear">
        </div>
        </div>
</asp:Content>
